This page last changed on 06.02.2011 by mark.

Pointing JBoss 5.0 to your Deployment-Directory (within Development)

In JBoss 5.0 you need to alter profile-repository.xml. It's located in <JBoss AS Root>/server/<Your Server-Path>/conf/bootstrap. There is a Bean named SerializableDeploymentRepositoryFactory. This Section looks like:
Before:

<bean name="SerializableDeploymentRepositoryFactory" class="org.jboss.system.server.profileservice.repository.SerializableDeploymentRepositoryFactory">
   ...
   <property name="applicationURIs">
      <array elementClass="java.net.URI">
         <value>${jboss.server.home.url}deploy</value>
      </array>
   </property>
   ...
</bean>

Add an Element to applicationURIs:

After:

<bean name="SerializableDeploymentRepositoryFactory" class="org.jboss.system.server.profileservice.repository.SerializableDeploymentRepositoryFactory">
   ...
   <property name="applicationURIs">
      <array elementClass="java.net.URI">
         <value>file://C:/Workspace/yourapp</value>
         <value>${jboss.server.home.url}deploy</value>
      </array>
   </property>
   ...
</bean>

This says JBoss to look in your specified Directory (in this Example in C:/Workspace/yourapp) for deployable Applications (Files or Folder named .jar, .war, .ear and so on)

Specifying Development Deployers

To activate Development Deployers you need to specify these in the Deployer-Metadata. It's also a XML File (war-deployers-jboss-beans.xml) located in <JBoss AS Root>/server/<Your Server-Path>/deployers/jbossweb.deployer/META-INF.

The default looks like:

Before:

...
<!-- WAR Structure -->
<bean name="WARStructure" class="org.jboss.web.deployers.WARStructure">
...
</bean>

<!-- The WebMetaData to service mbean deployer -->
<bean name="WarDeployer" class="org.jboss.web.tomcat.service.deployers.TomcatDeployer">
...
</bean>
...

You need to Change the two Class-Names to de.paluch.jboss.DevelopmentWARStructure and de.paluch.jboss.DevelopmentTomcatDeployer. Then it will look like this:

After:

...
<!-- WAR Structure -->
<bean name="WARStructure" class="de.paluch.jboss.DevelopmentWARStructure">
...
</bean>

<!-- The WebMetaData to service mbean deployer -->
<bean name="WarDeployer" class="de.paluch.jboss.DevelopmentTomcatDeployer">
...
</bean>
...

That's all!

Back to Main

Document generated by Confluence on 22 Mai 2011 13:19